package com.xhtt.smart.card.common.enums;

import com.xhtt.smart.card.common.util.HexConver;

/**
 * 语音类型
 *
 * @author wangze
 * @date 2018-07-04 13:28.
 **/
public enum VoiceTypeEnum {

    URGENT_EVACUATE(HexConver.int8ToByte(0x01), "情况紧急，请马上撤离"),
    DANGER_ZONE(HexConver.int8ToByte(0x02), "您已进入危险区域，请注意安全"),
    LEFT_WORK_AREA(HexConver.int8ToByte(0x03), "您已离开工作区域"),
    ATTENDANCE_SUCCESS(HexConver.int8ToByte(0x04), "考勤成功"),
    ATTENDANCE_Fail(HexConver.int8ToByte(0x05), "考勤失败"),
    INSPECTION_SUCCESS(HexConver.int8ToByte(0x06), "巡检成功"),
    ENTER_INSPECTION_MODE(HexConver.int8ToByte(0x07), "进入巡检模式"),
    INSPECTION_TIME_UP(HexConver.int8ToByte(0x08), "巡检时间已到"),
    TIME_TO_WORK(HexConver.int8ToByte(0x09), "上班时间已到"),
    MEETING_TO_WORK(HexConver.int8ToByte(0x0A), "开会时间已到"),
    DEVIATE_ROUTE(HexConver.int8ToByte(0x0B), "您已偏离路线"),
    DEVIATE_ACTIVE_AREA(HexConver.int8ToByte(0x0C), "您已偏离活动区域"),
    EXPIRED(HexConver.int8ToByte(0x0D), "您的工卡已到期，请续费后使用");

    private byte code;
    private String name;

    VoiceTypeEnum(byte code, String name) {
        this.code = code;
        this.name = name;
    }

    public byte getCode() {
        return code;
    }

    public void setCode(byte code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
